#include "tgaimage.h"
#include "model.h"
#include "geometry.h"
#include <conio.h>

struct Color
{
    TGAColor white=TGAColor(255,255,255,255);
    TGAColor black=TGAColor(0,0,0,255);
    TGAColor green=TGAColor(0,255,0,255);
    TGAColor blue=TGAColor(255,0,0,255);
    TGAColor red=TGAColor(0,0,255,255);
    TGAColor purple=TGAColor(240,32,160,255);
    TGAColor pink=TGAColor(203,192,255,255);
};

class Draw2d
{
    public:
    Draw2d()=default;
    void line(TGAImage* image,int x0,int y0,int x1,int y1,const TGAColor& color);
    void circle(TGAImage* image,int cx,int cy,int radius,const TGAColor& color);
    void fillcolor(TGAImage* image,Vec2i v0,Vec2i v1,Vec2i v2,const TGAColor& color);
    void fillcolor(TGAImage* image,int cx,int cy,int radius,const TGAColor& color);
};